﻿@if (Request.IsAuthenticated) {
    <div id="register">
        <ul>
          
           <li>| @Html.ActionLink("Thoát", "LogOff", "Account")</li>
           @if (Roles.IsUserInRole("Administrator"))
           {
               <li>| @Html.ActionLink("Cấu hình & Tiện ích", "Index", "Config", new { Area = "Admincp" }, new { })</li>
           }
            <li>Xin chào, @Html.ActionLink(User.Identity.Name,
                                           "ChangePassword", "Account",
                                           routeValues: null,

                                           htmlAttributes: new
                                           {
                                               @class = "username",
                                               title = "Change password"
                                           }) </li>
       
        </ul>
    </div>
}
else
{
    <div id="register">
        <ul>
            <li>@Html.ActionLink("Đăng ký", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
            <li>@Html.ActionLink("Đăng nhập", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
        </ul>
    </div>
}